package com.hotdog.controller;

import com.hotdog.service.ReturnPayUserService;
import com.hotdog.vo.SysResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 支付宝回调地址 用户支付成功会调用此方法
 *
 * @author 郭鲁政
 */
@RestController
@Slf4j
public class ReturnPayController {
    @Autowired
    private ReturnPayUserService returnPayUserService;

    /**
     * 接受支付宝支付成功 回调请求
     * @return
     */

    @RequestMapping("/return")
    public SysResult get() {

        returnPayUserService.returnInfo();

        return SysResult.success("开通会员成功");
    }

}
